using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Galaktika.BI.Extensibility.Dom
{
    [XmlRoot(Namespace=Galaktika.BI.Silverlight.Common.Namespace)]
    public class BrickEvent : BrickObject
    {
        public const string MOUSE_CLICK = "MouseClick";
        public const string MOUSE_DOUBLE_CLICK = "MouseDoubleClick";
        public const string MOUSE_ENTER = "MouseEnter";
        public const string MOUSE_LEAVE = "MouseLeave";
        public const string MOUSE_HOVER = "MouseHover";
        public const string KEY_DOWN = "KeyDown";
        public const string KEY_UP = "KeyUp";
        public const string ENTER = "Enter";
        public const string LEAVE = "Leave";

        public const string APP_STARTED = "AppStarted";
        public const string APP_SHUTDOWN = "AppShutdown";
        public const string FORM_OPENED = "FormOpened";
        public const string FORM_CLOSED = "FormClosed";

        public BrickEvent()
        {
        }

        public BrickEvent(string name, BrickActionInvoker invoker)
            : base(name)
        {
            this.Invoker = invoker;
        }

        public BrickActionInvoker Invoker { get; set; }
    }
}
